package com.ymatou.iapi.coupon.service;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;

/**
 * 作废优惠券Call FreeMaker Template自动生成代码
 */
public class invalidCouponCall extends YmatouBaseCall {
	private static String opurl = "api/promotion/invalidCoupon";

	public invalidCouponCall() {
		super(EnvSetup.getSystemUrl("couponiapi"), opurl, "POST", "JSON");
	}

	@Override
	public void addDefHeader() {
		client.addHeader("Accept", "text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}

	public String getStatusCode1() {
		return getString("statusCode");
	}

	public String getMessage() {
		return getString("message");
	}

	public String getData() {
		return getString("data");
	}

}